package com.requiem.hist_group_manage_springboot.mapper;

import com.requiem.hist_group_manage_springboot.model.EvaluationModel;
import com.requiem.hist_group_manage_springboot.model.StudentModel;
import com.requiem.hist_group_manage_springboot.model.TeacherModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {
    //查
    List<StudentModel> getStudentList();

    StudentModel getStudentByID(Integer id);

    StudentModel getStudentExit(String studentNumber);

    //增
    int addStudent(StudentModel studentModel);

    //删
    int deleteStudent(Integer id);

    //改
    int editStudent(StudentModel studentModel);

    //搜索
    List<StudentModel> getSearchList(StudentModel studentModel);

    /*
     *评论功能
     */
    List<TeacherModel> getTeacher(Integer groupId);

    List<EvaluationModel> getEvaluation(Integer studentId);

    int addEvaluation(EvaluationModel evaluationModel);

    int resetPassword(int id, String password);
}
